package de.mhus.lib.mandala.form;

import de.mhus.lib.mandala.Response;

public class EMailField extends FormInput {

	public EMailField(String id, String caption) {
		super(id, caption);
	}

	@Override
	protected void doRenderEdit(Response out) {
		out.startTag("input", "form-control", this.getTagAttributes(), "type", "email", "placeholder", getPlaceHolder(), "id", getId() );
		out.endTag("input");
	}

	@Override
	protected void doRenderView(Response out) {
		out.startTag("p", "form-control-static", this.getTagAttributes());
	}

}
